package com.jfs.properties;


import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Description mybatis-plus字段属性自动填充配置类
 * @E-mail cwm3412638@163.com
 * @Author cwm
 * @Date 2022-08-23
 */
@Setter
@Getter
@ConfigurationProperties(prefix = "mybatis-plus.auto-fill")
public class MybatisPlusAutoFillProperties {
    private final static String CREATE_TIME="createTime";
    private final static String UPDATE_TIME="updateTime";
    /**
     * 是否开启自动填充字段
     */
    private Boolean enabled = true;
    /**
     * 是否开启了插入填充
     */
    private Boolean enableInsertFill = true;
    /**
     * 是否开启了更新填充
     */
    private Boolean enableUpdateFill = true;
    /**
     * 创建时间字段名
     */
    private String createTimeField = CREATE_TIME;
    /**
     * 更新时间字段名
     */
    private String updateTimeField = UPDATE_TIME;
}
